<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\LandingCompany;

class LandingCompanySeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $this->command->info('开始创建落地公司测试数据...');

        // 落地公司数据
        $companies = [
            [
                'name' => '乐业派公司',
                'short_name' => '乐业派',
                'code' => 'LEYEPAI',
                'tax_number' => '91110108MA01234567',
                'address' => '北京市海淀区中关村大街1号',
                'contact_person' => '张经理',
                'phone' => '010-12345678',
                'email' => 'beijing@leyepai.com',
                'status' => LandingCompany::STATUS_ACTIVE,
                'billing_categories' => [
                    '信息技术服务*信息技术服务费',
                    '信息技术服务*技术服务费',
                    '信息技术服务*信息系统服务',
                    '现代服务*数据服务费',
                    '现代服务*商务服务费',
                    '现代服务*制作费'
                ],
                'remark' => '主要落地公司，提供多种开票类目服务',
                'bank_name' => '中国银行北京中关村支行',
                'account_number' => '1234567890123456789',
                'balance' => 0,
            ],
            [
                'name' => '上海创新数字技术有限公司',
                'short_name' => '上海创新',
                'code' => 'SH_INNOVATION',
                'tax_number' => '91310115MA02345678',
                'address' => '上海市浦东新区张江高科技园区',
                'contact_person' => '李经理',
                'phone' => '021-87654321',
                'email' => 'shanghai@innovation.com',
                'status' => LandingCompany::STATUS_ACTIVE,
                'billing_categories' => [
                    '信息技术服务*软件开发费',
                    '信息技术服务*系统维护费',
                    '现代服务*咨询服务费',
                    '现代服务*技术支持费'
                ],
                'remark' => '上海分公司',
                'bank_name' => '中国工商银行上海张江支行',
                'account_number' => '2234567890123456789',
                'balance' => 0,
            ],
            [
                'name' => '深圳智能科技发展有限公司',
                'short_name' => '深圳智能',
                'code' => 'SZ_SMART_TECH',
                'tax_number' => '91440300MA03456789',
                'address' => '深圳市南山区科技园南区',
                'contact_person' => '王经理',
                'phone' => '0755-23456789',
                'email' => 'shenzhen@smarttech.com',
                'status' => LandingCompany::STATUS_ACTIVE,
                'billing_categories' => [
                    '信息技术服务*软件定制费',
                    '现代服务*设计费',
                    '现代服务*商务服务费'
                ],
                'remark' => '深圳技术中心',
                'bank_name' => '中国建设银行深圳科技园支行',
                'account_number' => '3234567890123456789',
                'balance' => 0,
            ],
            [
                'name' => '广州云端服务有限公司',
                'short_name' => '广州云端',
                'code' => 'GZ_CLOUD_SERVICE',
                'tax_number' => '91440101MA04567890',
                'address' => '广州市天河区珠江新城',
                'contact_person' => '陈经理',
                'phone' => '020-34567890',
                'email' => 'guangzhou@cloudservice.com',
                'status' => LandingCompany::STATUS_ACTIVE,
                'billing_categories' => [
                    '信息技术服务*云服务费',
                    '现代服务*运维服务费'
                ],
                'remark' => '广州服务中心',
                'bank_name' => '中国农业银行广州珠江新城支行',
                'account_number' => '4234567890123456789',
                'balance' => 0,
            ],
            [
                'name' => '杭州数字化解决方案有限公司',
                'short_name' => '杭州数字',
                'code' => 'HZ_DIGITAL_SOLUTION',
                'tax_number' => '91330100MA05678901',
                'address' => '杭州市西湖区文三路',
                'contact_person' => '刘经理',
                'phone' => '0571-45678901',
                'email' => 'hangzhou@digitalsolution.com',
                'status' => LandingCompany::STATUS_ACTIVE,
                'billing_categories' => [
                    '信息技术服务*数字化服务费',
                    '现代服务*解决方案费'
                ],
                'remark' => '杭州研发中心',
                'bank_name' => '杭州银行文三路支行',
                'account_number' => '5234567890123456789',
                'balance' => 0,
            ],
            [
                'name' => '成都智慧科技有限公司',
                'short_name' => '成都智慧',
                'code' => 'CD_WISDOM_TECH',
                'tax_number' => '91510100MA06789012',
                'address' => '成都市高新区天府三街',
                'contact_person' => '赵经理',
                'phone' => '028-56789012',
                'email' => 'chengdu@wisdomtech.com',
                'status' => LandingCompany::STATUS_ACTIVE,
                'billing_categories' => [
                    '信息技术服务*平台服务费',
                ],
                'remark' => '成都创新中心',
                'bank_name' => '中国银行成都高新支行',
                'account_number' => '6234567890123456789',
                'balance' => 0,
            ],
            [
                'name' => '武汉创新技术有限公司',
                'short_name' => '武汉创新',
                'code' => 'WH_INNOVATION_TECH',
                'tax_number' => '91420100MA07890123',
                'address' => '武汉市东湖新技术开发区',
                'contact_person' => '孙经理',
                'phone' => '027-67890123',
                'email' => 'wuhan@innovationtech.com',
                'status' => LandingCompany::STATUS_ACTIVE,
                'billing_categories' => [
                    '信息技术服务*系统实施费',
                ],
                'remark' => '武汉技术中心',
                'bank_name' => '中国工商银行武汉光谷支行',
                'account_number' => '7234567890123456789',
                'balance' => 0,
            ],
            [
                'name' => '西安数字科技有限公司',
                'short_name' => '西安数字',
                'code' => 'XA_DIGITAL_TECH',
                'tax_number' => '91610100MA08901234',
                'address' => '西安市高新区丈八一路',
                'contact_person' => '周经理',
                'phone' => '029-78901234',
                'email' => 'xian@digitaltech.com',
                'status' => LandingCompany::STATUS_ACTIVE,
                'billing_categories' => [
                    '信息技术服务*数据处理费',
                ],
                'remark' => '西安开发中心',
                'bank_name' => '交通银行西安高新支行',
                'account_number' => '8234567890123456789',
                'balance' => 0,
            ],
            [
                'name' => '南京智能服务有限公司',
                'short_name' => '南京智能',
                'code' => 'NJ_SMART_SERVICE',
                'tax_number' => '91320100MA09012345',
                'address' => '南京市建邺区河西新城',
                'contact_person' => '吴经理',
                'phone' => '025-89012345',
                'email' => 'nanjing@smartservice.com',
                'status' => LandingCompany::STATUS_ACTIVE,
                'billing_categories' => [
                    '现代服务*综合服务费',
                ],
                'remark' => '南京服务中心',
                'bank_name' => '中国农业银行南京河西支行',
                'account_number' => '9234567890123456789',
                'balance' => 0,
            ],
            [
                'name' => '青岛海洋科技有限公司',
                'short_name' => '青岛海洋',
                'code' => 'QD_OCEAN_TECH',
                'tax_number' => '91370200MA10123456',
                'address' => '青岛市崂山区海尔路',
                'contact_person' => '郑经理',
                'phone' => '0532-90123456',
                'email' => 'qingdao@oceantech.com',
                'status' => LandingCompany::STATUS_ACTIVE,
                'billing_categories' => [
                    '现代服务*平台服务费',
                ],
                'remark' => '青岛技术中心',
                'bank_name' => '中国银行青岛崂山支行',
                'account_number' => '0334567890123456789',
                'balance' => 0,
            ],
            [
                'name' => '重庆智造科技有限公司',
                'short_name' => '重庆智造',
                'code' => 'CQ_SMART_MANUFACTURING',
                'tax_number' => '91500000MA11234567',
                'address' => '重庆市渝北区两江新区',
                'contact_person' => '何经理',
                'phone' => '023-12345678',
                'email' => 'chongqing@smartmanufacturing.com',
                'status' => LandingCompany::STATUS_INACTIVE,
                'billing_categories' => [
                    '现代服务*制造服务费',
                ],
                'remark' => '重庆制造中心（暂停运营）',
                'bank_name' => '中国建设银行重庆两江支行',
                'account_number' => '1334567890123456789',
                'balance' => 0,
            ]
        ];

        foreach ($companies as $companyData) {
            LandingCompany::create($companyData);
            $this->command->info("创建落地公司：{$companyData['name']}");
        }

        $this->command->info('落地公司测试数据创建完成！总计创建 ' . count($companies) . ' 条记录');
    }
}
